# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-module-runtime
pkgver=0.016
pkgrel=3
pkgdesc="runtime module handling"
arch=('any')
url="https://search.cpan.org/dist/Module-Runtime/"
license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl-module-build')
options=(!emptydirs)
source=("https://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Module-Runtime-$pkgver.tar.gz")
sha256sums=('68302ec646833547d410be28e09676db75006f4aa58a11f3bdb44ffe99f0f024')

build() {
  cd "$srcdir"/Module-Runtime-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Module-Runtime-$pkgver
  make install DESTDIR="${pkgdir}"
  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}
